package com.starrtc.demo.imclient.ClientSender;


import com.starrtc.demo.imclient.iMcommon.bean.msg.ProtoMsg;
import com.starrtc.demo.imclient.protoBuilder.LoginMsgBuilder;

public class LoginSender extends BaseSender {

    public static LoginSender instance;

    public static LoginSender getInstance(){
        if(instance == null){
            instance = new LoginSender();
            return instance;
        }
        return instance;
    }

    private LoginSender(){

    }
    public void sendLoginMsg() {
        if (!isConnected()) {
//            log.info("还没有建立连接!");
            return;
        }
//        Print.tcfo("发送登录消息");
        ProtoMsg.Message message =
                LoginMsgBuilder.buildLoginMsg(getUser(), getSession());
        super.sendMsg(message);
    }


}
